public class charAt {
    public static void main(String[] args) {
        String s = "abcabcabc";
        char c = s.charAt(1);
        System.out.println(s.indexOf('b'));
        System.out.println(s.indexOf("bc"));
        System.out.println(s.lastIndexOf('a'));
        System.out.println(s.lastIndexOf("bc"));
        System.out.println(s.substring(5));
        System.out.println(s.substring(3, 6));
        System.out.println(s.trim());
        System.out.println(c);
    }
}
